package edu.biwu.service.impl;


import edu.biwu.config.SpringConfig;
import edu.biwu.service.ProductService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author 王俊彪
 * @version 1.0
 */
//@SpringJUnitConfig(locations = "classpath:applicationContext.xml")
    @SpringJUnitConfig(SpringConfig.class)
public class ProductServiceImplSpringTest02 {
    @Autowired
    ProductService productService;

    @Test
    public void testFindAll(){
        productService.findAll().forEach(System.out::println);
    }
}
